#!/bin/bash
# Zaitan Module - Firebirb Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='DB'
RMOD_NAME='Firebirb'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.5'
RMOD_DESCRIPTION='Installs Firebird'
RMOD_RUN_IN_CHROOT=True
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Firebirb
USER2=$(who am i | cut -f1 -d" ")


apt-get update
apt-get -y install libwxbase2.6-0 libwxgtk2.6-0
apt-get -y install firebird2-super-server
apt-get -y install firebird2-examples
apt-get -y install flamerobin

## Driver JDBC para o Firebird
#cd /usr/share/zaitan
#mkdir driver
#cd driver
#wget -c http://ufpr.dl.sourceforge.net/sourceforge/firebird/FirebirdSQL-1.5.0RC2JDK_1.4.zip
#unzip FirebirdSQL-1.5.0RC2JDK_1.4.zip
#cd lib
#mv *.jar ..
#cd ..
#mv firebirdsql.jar log4j-core.jar mini-concurrent.jar mini-j2ee.jar jaas.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/


echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/bashare/modules/mod-logs
##

exit 0

